package com.yunfangdata.mapper;

import com.yunfangdata.domain.Grade;
import com.yunfangdata.query.QueryObject;

import java.util.List;

public interface GradeMapper {

    int insert(Grade record);

    List<Grade> selectAll();

    int updateByPrimaryKey(Grade record);

    //查总数
    int  queryForCount(QueryObject qo);

    //查分页数据
    List<Grade> queryForList(QueryObject qo);

    void changeState(Long id);
}